<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>


<head>
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>新增或修改网元型号模板</title>
	<style type="text/css">
		#devTemplateForm .row{
			margin-top: 5px;
		}
		
		.right{
			text-align: right;
		}
	</style>
</head>

<body>
	<div id="areaZTreeContent" style="display:none; position: absolute;border: 1px solid #B2AFAF;background-color: #EEEEEE;">
		<ul id="areaZTree" class="ztree" style="margin-top:0; width:160px;"></ul>
	</div>
	<form:form id="devTemplateForm" method="post" modelAttribute="devTemplate" cssClass="form-horizontal">
		<form:hidden path="templateId"/>
		<form:hidden path="modelId"/>
		<form:hidden id="areaId" path="areaId"/>
		<div class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="areaName" path="areaName" >所属地区</form:label>
					<div class="controls">
						<form:input id="areaName" path="areaName" readonly="true" class="input-small" check-type="required" required-message="所属地区不能为空!"/>
						<button id="selectBtn" type="button" class="btn" onclick="showArea(); return false;">选择</button>
					</div>
				</div>
			</div>
			<div class="span4">
				<div class="control-group ">
					<form:label cssClass="control-label" for="name" path="name" >模板名称</form:label>
					<div class="controls">
						<form:input id="name" path="name" class="input-medium" check-type="required" required-message="模板名称不能为空!"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="newName" path="newName" >新增用户名</form:label>
					<div class="controls">
						<form:input id="newName" path="newName" class="input-medium"/>
					</div>
				</div>
			</div>
			<div class="span4">
				<div class="control-group ">
					<form:label cssClass="control-label" for="newPwd" path="newPwd" >新增用户名密码</form:label>
					<div class="controls">
						<form:input id="newPwd" path="newPwd" class="input-medium"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="ptp1x" path="ptp1x">1X业务标准配置端口</form:label>
					<div class="controls">
						<form:input id="ptp1x" path="ptp1x" class="input-medium"/>
					</div>
				</div>
			</div>
			<div class="span4">
				<div class="control-group ">
					<form:label cssClass="control-label" for="doPtp" path="doPtp" >DO业务标准配置端口</form:label>
					<div class="controls">
						<form:input id="doPtp" path="doPtp" class="input-medium"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="ltePtp" path="ltePtp" >LTE业务标准配置端口</form:label>
					<div class="controls">
						<form:input id="ltePtp" path="ltePtp" class="input-medium"/>
					</div>
				</div>
			</div>
			<div class="span4">
				<div class="control-group ">
					<form:label cssClass="control-label" for="commandType" path="commandType" >命令行连接方式</form:label>
					<div class="controls">
						<form:input id="commandType" path="commandType" class="input-medium"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="commandPort" path="commandPort" >命令行连接端口</form:label>
					<div class="controls">
						<form:input id="commandPort" path="commandPort" class="input-medium"/>
					</div>
				</div>
			</div>
			<div class="span4">
				<div class="control-group ">
					<form:label cssClass="control-label" for="snmpCommunity" path="snmpCommunity" >SNMP共同体串</form:label>
					<div class="controls">
						<form:input id="snmpCommunity" path="snmpCommunity" class="input-medium"/>
					</div>
				</div>
			</div>
		</div>
		
		<div class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="snmpPort" path="snmpPort" >SNMP端口</form:label>
					<div class="controls">
						<form:input id="snmpPort" path="snmpPort" class="input-medium"/>
					</div>
				</div>
			</div>
			<div class="span4">
				<div class="control-group">
					<form:label cssClass="control-label" for="snmpVer" path="snmpVer" >SNMP版本</form:label>
					<div class="controls">
						<form:input id="snmpVer" path="snmpVer" class="input-medium"/>
					</div>
				</div>
			</div>
		</div>
	
		<div class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="upPtp" path="upPtp" >上联口PTP</form:label>
					<div class="controls">
						<form:input id="upPtp" path="upPtp" class="input-medium"/>
					</div>
				</div>
			</div>
			<div class="span4">
				<div class="control-group ">
					<form:label cssClass="control-label" for="downPtp" path="downPtp" >下联口PTP</form:label>
					<div class="controls">
						<form:input id="downPtp" path="downPtp" class="input-medium"/>
					</div>
				</div>
			</div>
		</div>
	
		<div class="row">
			<div class="span5">
				<div class="control-group ">
					<form:label cssClass="control-label" for="netPtp" path="netPtp" >BB互联PTP</form:label>
					<div class="controls">
						<form:input id="netPtp" path="netPtp" class="input-medium"/>
					</div>
				</div>
			</div>
		</div>
	</form:form>
	<div class="alert" style="visibility: hidden;width: 55px;margin-left: 30%;"/>
</body>
</html>